package com.example.vo;
import lombok.Data;
import lombok.ToString;

/**
 * 响应枚举类
 * @author wsl
 */
@ToString
public enum ResultVoEnum {

    ERROR(500,"请求错误"),

    USER_NOT_LOGIN(1001,"用户未登录"),
    USER_PERMISSION_DENIED(1002,"用户权限不足"),
    USER_LOGIN_EXPIRED(1003,"用户登录过期"),
    MENU_DISABLED(2001,"菜单被禁用了");

    ResultVoEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private Integer code;

    private String msg;

    private Object data;

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
